package com.jdone.compus.config;


import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@Data
@Configuration
@ConfigurationProperties(prefix = "haile.ioc")
public class IocConfig {
    private String env;
    private String preBaseUrl;
    private String prodBaseUrl;
    private String appId;
    private String appKey;

    public String getBaseUrl() {
        return "prod".equals(env) ? prodBaseUrl : preBaseUrl;
    }
}

